package cn.itcast.demo;

public class ForDemo2 {

    public static void main(String[] args){
        System.out.println(1);
        System.out.println(2);
        System.out.println(3);
        System.out.println(4);
        System.out.println(5);
        System.out.println("=====================================");

        for(int i=1; i<=5;i++){
            System.out.println(i);
        }

        System.out.println("==================================");

        for(int i=5;i>=1;i--){
            System.out.println(i);
        }



    }



}
